<?php echo $this->Form->hidden('ticket_number', array('label' => 'Nro de Ticket', 'value' => $number, 'readonly')); ?>

<script>
  $(document).ready(function(){
    $('#ticketMenu').text($('#ticket_number').val());
  });
</script>